﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.EquipmentManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.EquipmentManagement.MaintenanceRecordVMs
{
    public partial class MaintenanceRecordBatchVM : BaseBatchVM<MaintenanceRecord, MaintenanceRecord_BatchEdit>
    {
        public MaintenanceRecordBatchVM()
        {
            ListVM = new MaintenanceRecordListVM();
            LinkedVM = new MaintenanceRecord_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class MaintenanceRecord_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._MaintenanceRecord._Plan")]
        public long? PlanId { get; set; }
        [Display(Name = "_Model._MaintenanceRecord._Equipment")]
        public long? EquipmentId { get; set; }
        [Display(Name = "_Model._MaintenanceRecord._Maintainer")]
        public string MaintainerId { get; set; }
        [Display(Name = "_Model._MaintenanceRecord._MaintenanceTime")]
        public DateTime? MaintenanceTime { get; set; }
        [Display(Name = "_Model._MaintenanceRecord._FinishTime")]
        public DateTime? FinishTime { get; set; }
        [Display(Name = "_Model._MaintenanceRecord._ActualHours")]
        public decimal? ActualHours { get; set; }
        [Display(Name = "_Model._MaintenanceRecord._Result")]
        public MaintenanceResultEnum? Result { get; set; }
        [Display(Name = "_Model._MaintenanceRecord._Note")]
        public string Note { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}